package com.jr.service.impl;


import com.jr.entity.UserJobEnterprise;
import com.jr.mapper.UserJobEnterpriseDao;
import com.jr.service.UserJobEnterpriseService;
import com.jr.util.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 季成索
 * @Date:傻逼Git，搞得老子巨难受，beyond，凸(艹皿艹 )！
 * @email: 2301861732@qq.com
 **/

@Service
public class UserJobEnterpriseServiceImpl implements UserJobEnterpriseService {

    @Autowired
    UserJobEnterpriseDao userJobEnterpriseDao;



    /*    @Override
            public List<UserJobEnterprise> queryJobAll(Map<String, Object> map) {
                return userJobEnterpriseDao.selectJobAll(map);
            }*/
    @Override
    public List<UserJobEnterprise> queryJobAll(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.selectAllJob(pageHelper);
    }

    @Override
    public List<UserJobEnterprise> queryJobAllByUid(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.selectAllJobByUid(pageHelper);
    }
    @Override
    public UserJobEnterprise selectOneJobWithUid(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.selectOneJobByUid(pageHelper);
    }
    @Override
    public List<UserJobEnterprise> queryJobsByEid(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.selectJobsByEid(pageHelper);
    }

    @Override
    public int addUserJobEnterprise(UserJobEnterprise userJobEnterprise) {
        return userJobEnterpriseDao.insertUserJobEnterprise(userJobEnterprise);
    }
    @Override
    public UserJobEnterprise queryUserJobEnterprise(UserJobEnterprise userJobEnterprise) {
        return userJobEnterpriseDao.selectUserJobEnterprise(userJobEnterprise);
    }
    @Override
    public int modifuUserJobEnterprise(UserJobEnterprise userJobEnterprise) {
        return userJobEnterpriseDao.updateUserJobEnterprise(userJobEnterprise);
    }

    @Override
    public int countNumbersOfJobsByUid(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.countNumbersWithJobsByUid(pageHelper);
    }

    @Override
    public int countNumbersOfJobs(PageHelper<UserJobEnterprise> pageHelper) {
        return userJobEnterpriseDao.countNumbersWithJobs(pageHelper);
    }

    @Override
    public int removeByJobuserstatusAndJobuserattentionWithUser() {
        return userJobEnterpriseDao.deleteByJobuserstatusAndJobuserattentionWithUser();
    }
}